<!DOCTYPE html>
<html>
<head>
<title>SMM交易中心</title>
</head>

<body class="page-header-top-fixed">

<div class="page-header">
	<!--头部开始-->
	<#include "/include/top.html" />
	<!-- 头部信息结束 -->


	<!-- 头部菜单开始-->
	<#include "/include/top_menu.html" />
	<!-- 头部菜单结束 -->
</div>

<!-- 内容开始 -->


<form action="" method="post">
	<div class="portlet-body" style="padding-top: 10px">
		<div class="row">
			<div style="float: left;width: 80%;padding-left: 15px;">
				<div class="btn-group pull-left">
						<div class="row" style="height: 56px; text-align:left ;padding-left: 27px;padding-top: 8px;">
							<div class="col-sm-12">
								<div id="sample_2_filter" class="dataTables_filter">
									<div style="float: left;padding-left: 0px;padding-bottom: 7px;" class="col-md-6">
										<div class="btn-group btn-group-justified" > 
											<a href="${request.getContextPath()}/orders/customerDetail.do?customerId=${customerId}" class="btn green">企业信息</a>
											<a href="${request.getContextPath()}/orders/orderList.do?customerId=${customerId}" class="btn btn-default">订单记录</a>
											<a href="${request.getContextPath()}/orders/releaselist.do?customerId=${customerId}" class="btn btn-default">发布记录</a>
											<a href="${request.getContextPath()}/orders/favorite.do?customerId=${customerId}" class="btn btn-default">收藏记录</a>
										</div>
									</div>
								</div>
							</div>
						</div>	
				</div>
			</div>
			<div style="float: right;width: 15%">
				<a  class="btn green" href='${request.getContextPath()}/customer/toUpdateCustomer.do?customerId=${customerId}'>
					<i class="fa"></i> 修改
				</a>
				<a  class="btn green" onclick="delCustomer(${customerId})">
					<i class="fa"></i> 删除
				</a>
				<a  class="btn green" onclick="history.go(-1)">
					<i class="fa"></i> 返回
				</a>
			</div>
		</div>
	</div>
</form>	




<div class="page-container">
			<div class="container-fluid">
			<div class="row margin-top-10">
				<div class="col-md-12">
				<div class="portlet light bordered">
					<div class="table-scrollable">


	<table class="table table-striped table-bordered table-advance table-hover ttTbl" id="myTable" style="width: 50%">
		<tr>
			<td align="right">创建时间：</td>
			<td>
				<#if customer.createdAt??>
					${customer.createdAt?string('yyyy-MM-dd')}
				<#else>
					--
				</#if>
			<td align="right">创建人：</td>
			<td>${customer.createUser!''}</td>
		</tr>
		<tr>
			<td align="right">负责人：</td>
			<td>${customer.picUser!''}</td>
			<td align="right">昵称：</td>
			<td>${customer.nickName!''}</td>
		</tr>
		<tr>
			<td align="right">手机：</td>
			<td>${customer.phone!''}</td>
			<td align="right">分类：</td>
			<td>${customer.scrapItemIds!''}</td>
		</tr>
		<!-- 
		<tr>
			<td align="right">省</td>
			<td>${customer.provName!''}</td>
			<td align="right">市</td>
			<td>${customer.cityName!''}</td>
		</tr>
		 -->
		<tr>
			<td align="right">姓名：</td>
			<td>${customer.name!''}</td>
			<td align="right">地区：</td>
			<td>${customer.provName!''}&nbsp;${customer.cityName!''}</td>
		</tr>
		<tr>
			<td align="right">公司名：</td>
			<td>${customer.companyName!''}</td>
			<td align="right">地址：</td>
			<td>${customer.address!''}</td>
		</tr>
		<tr>
			<td align="right">交易类型：</td>
			<td>
				<#if customer.categorybusiness ?? && customer.categorybusiness=1>
					采购方
				</#if>
				<#if customer.categorybusiness ?? && customer.categorybusiness=2>
					供应商
				</#if>
				<#if customer.categorybusiness ?? && customer.categorybusiness=3>
					采购方/供应商
				</#if>
			</td>
			<td align="right">企业类型：</td>
			<td>
				<#list entTypesList as entName>
					${entName}&nbsp;
				</#list>
			</td>
		</tr>
		<tr>
			<td align="right">邮箱：</td>
			<td>${customer.email!''}</td>
			<td></td>
			<td></td>
		</tr>
	</table>
</div>
</div>
</div>
</div>
</div>
</div>

<!-- 底部开始 -->
<#include "/include/foot.html" />
<!-- 底部结束 -->
</body>

<link href="${request.getContextPath()}/Public/assets/admin/css/css.css" rel="stylesheet" type="text/css">
<link href="${request.getContextPath()}/Public/assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="${request.getContextPath()}/Public/assets/global/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css">
<link href="${request.getContextPath()}/Public/assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="${request.getContextPath()}/Public/assets/global/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css">

<link href="${request.getContextPath()}/Public/assets/global/css/components-rounded.css" id="style_components" rel="stylesheet" type="text/css">
<link href="${request.getContextPath()}/Public/assets/global/css/plugins.css" rel="stylesheet" type="text/css">
<link href="${request.getContextPath()}/Public/assets/admin/css/layout.css" rel="stylesheet" type="text/css">
<link href="${request.getContextPath()}/Public/assets/admin/css/themes/default.css" rel="stylesheet" type="text/css" id="style_color">
<link href="${request.getContextPath()}/Public/assets/admin/css/custom.css" rel="stylesheet" type="text/css">
<link href="${request.getContextPath()}/Public/assets/global/plugins/bootstrap-datepicker/css/bootstrap-datepicker.min.css" rel="stylesheet" type="text/css">

<link href="${request.getContextPath()}/Public/assets/admin/css/common.css" rel="stylesheet" type="text/css">

<link rel="shortcut icon" href="${request.getContextPath()}/Public/favicon.ico">
<link href="${request.getContextPath()}/Public/css/client.css" rel="stylesheet" type="text/css">

<link href="${request.getContextPath()}/Public/assets/global/css/kkpager.css" rel="stylesheet" type="text/css">
<link href="${request.getContextPath()}/Public/css/customerDetail.css" rel="stylesheet" type="text/css">

<script type="text/javascript" src="${request.getContextPath()}/Public/My97DatePicker/WdatePicker.js"></script>

<script src="${request.getContextPath()}/Public/assets/global/plugins/jquery.min.js" type="text/javascript"></script>
<script src="${request.getContextPath()}/Public/assets/global/plugins/jquery-migrate.min.js" type="text/javascript"></script>
<script src="${request.getContextPath()}/Public/assets/global/plugins/jquery-ui/jquery-ui.min.js" type="text/javascript"></script>
<script src="${request.getContextPath()}/Public/assets/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="${request.getContextPath()}/Public/assets/global/plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js" type="text/javascript"></script>
<script src="${request.getContextPath()}/Public/assets/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
<script src="${request.getContextPath()}/Public/assets/global/plugins/jquery.blockui.min.js" type="text/javascript"></script>
<script src="${request.getContextPath()}/Public/assets/global/plugins/jquery.cokie.min.js" type="text/javascript"></script>
<script src="${request.getContextPath()}/Public/assets/global/plugins/uniform/jquery.uniform.min.js" type="text/javascript"></script>
<script src="${request.getContextPath()}/Public/assets/global/plugins/jquery-notific8/jquery.notific8.min.js"></script>
<script src="${request.getContextPath()}/Public/assets/global/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js" type="text/javascript"></script>
<script src="${request.getContextPath()}/Public/assets/global/scripts/metronic.js" type="text/javascript"></script>
<script src="${request.getContextPath()}/Public/assets/admin/scripts/layout.js" type="text/javascript"></script>
<script src="${request.getContextPath()}/Public/assets/global/plugins/kkpager.min.js" type="text/javascript"></script>
<script src="${request.getContextPath()}/Public/assets/admin/scripts/commonUtils.js" type="text/javascript"></script>
<script src="${request.getContextPath()}/Public/js/ckeditor/ckeditor.js" type="text/javascript"></script>
<script>
function delCustomer(id){
	if(confirm("是否确认删除该客户")){
		$.ajax({
			type:"GET",
			url:"${request.getContextPath()}/orders/delCustomer.do",
			data:{"id":id},
			dataType:"json",
			success: function(res){
	    		if(res.code=="succ"){
	   				CommonUtils.succModal2('系统提示',res.info,"${request.getContextPath()}/customer/customerList.do");
	    		}
	    		else{
	    			CommonUtils.succModal('系统提示',res.info);
	    		}
	    	}
		});
	}
}

</script>

</html>